#include <iostream>

using namespace std;

typedef long long LL;

int main()
{
    int t; cin >> t;
    while(t--)
    {
         LL x, y, a; cin >> x >> y >> a;
         double tmp = a % (x + y);
         tmp = tmp + 0.5;
        if(tmp - x < 0) cout << "No" << endl;
        else cout << "Yes" << endl;
    }
   return 0;
}